package com.gexiaobao.pigeon.app.model.bean

import android.os.Parcelable
import kotlinx.parcelize.Parcelize

/**
 * @Author      : hxw
 * @Date        : 2024/3/11 15:43
 * @Describe    :
 */
@Parcelize
class ProvinceListResponse(

    var total: Int = 0,
    var list: ArrayList<ListBean> = ArrayList(),
    var hotCityList: ArrayList<HotListBean> = ArrayList()

) : Parcelable {

    /**
     * 数据是否为空
     */
    fun isEmpty() = list == null || (list as List<*>).isEmpty()

    @Parcelize
    class HotListBean(

        var areaId: Int = 0,
        var cityId: Int = 0,
        var id: Int = 0,
        var name: String = "",
        var provinceId: Int = 0,
        var pId: Int = 0,
        var pName: String = "",

        ) : Parcelable

    @Parcelize
    class ListBean(

        var areaId: Int = 0,
        var cityId: Int = 0,
        var id: Int = 0,
        var name: String = "",
        var provinceId: Int = 0,

        ) : Parcelable

}